#{extends 'CRUD/layout_admin.html' /}
#{set title:messages.get('crud.show.title', type.modelName) /}

<div id="crudShow" class="${type.name}">

    <h2 id="crudShowTitle">&{'crud.show.title', type.modelName}</h2>

    <div class="objectForm">
    #{form action:@save(object._key()), enctype:'multipart/form-data'}
        #{crud.form }
            #{crud.custom 'hidmodelosimulacion'}
                <label for="object_hidmodelosimulacion"> &{'hidmodelosimulacion'}</label>
                <select id="object_hidmodelosimulacion" name="object.hidmodelosimulacion.entiid">
                    <option value="0"> Modelo de Simulacion Padre </option>
                    #{list items:models.Hidmodelosimulacion.findAll(), as:'hidmodelosimulacion'}
                        #{if hidmodelosimulacion.modsimid != object.modsimid}
                            <option value="${hidmodelosimulacion.modsimid}"
                                #{if object.hidmodelosimulacion != null}
                                    #{if object.hidmodelosimulacion.modsimid == hidmodelosimulacion.modsimid}
                                    selected="true"
                                    #{/if}
                                #{/if}
                                    >${hidmodelosimulacion.modsimnom}</option>
                        #{/if}
                    #{/list}
                </select>
            #{/crud.custom}

            #{crud.custom 'modsimlatmin'}
                <label for="object_modsimlatmin"> &{'modsimlatmin'} </label>
                <input id="object_modsimlatmin" class="" type="text" size="5" value="&{object.modsimlatmin}" name="object.modsimlatmin" readonly="true">
                <span class="crudHelp"> Numeric. </span>
            #{/crud.custom}
            #{crud.custom 'modsimlatmax'}
                <label for="object_modsimlatmax"> &{'modsimlatmax'} </label>
                <input id="object_modsimlatmax" class="" type="text" size="5" value="&{object.modsimlatmax}" name="object.modsimlatmax" readonly="true">
                <span class="crudHelp"> Numeric. </span>
            #{/crud.custom}
            #{crud.custom 'modsimlongmin'}
                <label for="object_modsimlongmin"> &{'modsimlongmin'} </label>
                <input id="object_modsimlongmin" class="" type="text" size="5" value="&{object.modsimlongmin}" name="object.modsimlongmin" readonly="true">
                <span class="crudHelp"> Numeric. </span>
            #{/crud.custom}
            #{crud.custom 'modsimlongmax'}
                <label for="object_modsimlongmax"> &{'modsimlongmax'} </label>
                <input id="object_modsimlongmax" class="" type="text" size="5" value="&{object.modsimlongmax}" name="object.modsimlongmax" readonly="true">
                <span class="crudHelp"> Numeric. </span>
            #{/crud.custom}
            #{crud.custom 'modsimesce'}
                <label for="object_modsimesce"> &{'modsimesce'} </label>
                <input id="object_modsimesce" class="" type="text" size="5" value="&{object.modsimesce}" name="object.modsimesce" readonly="true">
                <span class="crudHelp"> Numeric. </span>
            #{/crud.custom}

        #{/crud.form}
        <p class="crudButtons">
            <input type="submit" name="_save" value="&{'crud.save', type.modelName}" />
            <input type="submit" name="_saveAndContinue" value="&{'crud.saveAndContinue', type.modelName}" />
        </p>
    #{/form}
    </div>

    #{form @delete(object._key())}
        <p class="crudDelete">
            <input type="submit" value="&{'crud.delete', type.modelName}" />
        </p>
    #{/form}

</div>